package com.example.game_community.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.example.game_community.entity.Comment;
import com.example.game_community.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PostDTO {

    private String title;

    private String content;

    private String sector;

    private LocalDateTime createTime;

    @TableField(exist = false)
    private List<Comment> comments; // 包含 user 信息的评论列表

    @TableField(exist = false)
    private User userInfo; // 包含 user 信息的评论列表


    @TableField(exist = false)
    private List<String> imageUrls;
}
